package day02;

public class TestAnimal {
    public static void main(String[] args) {
        // 创建对象的过程
        Animals dog = new Animals();
        dog.name="小花1111";
        dog.age=2;
        dog.sex='男';
        System.out.println(dog.name); // 输出对象的名字
        dog.eat(); //
        Animals cat = new Animals();
        cat.name="Kitty343434";
        cat.age=1;
        cat.sex='女';
        cat.eat();

        Animals fish = new Animals();
        Animals yingwu = new Animals("鹦鹉",1,'男');
        System.out.println(yingwu.name);
        yingwu.eat();
        Animals.say();  // 静态方法

    }
}
